package com.onstar.cn.framework.annotation.http;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.onstar.cn.framework.network.enumtype.HttpMethod;

/**
 * Http request wrap
 * 
 * @author 7828wc
 * 
 */
@Target({ ElementType.METHOD, ElementType.LOCAL_VARIABLE })
@Retention(RetentionPolicy.RUNTIME)
public @interface Request {
	/**
	 * Http request heads.
	 * 
	 * @return
	 */
	HeadsValue heads();

	/**
	 * Http request method.
	 * 
	 * @return
	 */
	HttpMethod method() default HttpMethod.GET;
}
